	function initEditor(fieldId){
		tinyMCE.init({
			mode : "exact",
			elements : ""+fieldId,
			theme: "advanced",
			plugins : "fullscreen",
			theme_advanced_buttons1 : "newdocument,separator,bold,italic,underline,strike,separator,justifyleft,justifycenter,justifyright,justifyfullhr,separator,bullist,numlist,separator,outdent,indent",
			theme_advanced_buttons2 : "undo,redo,separator,link,unlink,anchor,image,removeformat,visualaid,separator,sub,sup,separator,charmap",
			theme_advanced_buttons3 : "code,separator,cleanup,separator,fullscreen",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			editor_selector : "wysiwyg"
		});
	}
		
	function saveEditor(){
		tinyMCE.triggerSave();
	}
			
	rteEditor = true;

	for(j=0; j < document.forms.length; j++){
		var form1 = document.forms[j];
		for(i=0; i < form1.elements.length; i++){
			var obj = form1.elements[i];
			if("textarea"==obj.type && "wysiwyg" == obj.className){
				func = "countCharsRTE('" + obj.id + "')";
				window.setInterval(func, 500);
			}
		}
	}
